package com.gpframework.module.req.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 多文件上传请求体
 */
@Data
@ApiModel
@Validated
public class UploadFileListReq {

    @NotNull(message = "请上传多文件")
    @ApiModelProperty(value = "多文件",required = true)
    private List<MultipartFile> files;

    @NotBlank(message = "请输入类型 1头像 2照片墙 3声音文件")
    @ApiModelProperty(value = "类型 1头像 2照片墙 3声音文件",required = true)
    private String type;


}
